package com.ls.pattern.structure.facade;

public class HomeTheaterFacade {


    private DVDPlayer dvdPlayer;
    private Popcorn popcorn;
    private Projector projector;

    public HomeTheaterFacade() {
        this.dvdPlayer = DVDPlayer.getInstance();
        this.popcorn = Popcorn.getInstance();
        this.projector = Projector.getInstance();
    }


    public void ready() {
        popcorn.on();
        popcorn.pop();
        projector.on();
        projector.focus();
        dvdPlayer.on();

    }
     public void play(){
        dvdPlayer.play();
     }

     public void end(){
         popcorn.off();
         projector.off();
         dvdPlayer.off();
     }


}
